﻿using System;
using System.Windows.Forms;

namespace Oplug.CoolTower
{
    public partial class FormHelp : Form
    {
        public FormHelp()
        {
            InitializeComponent();
        }

        private void FormHelp_Load(object sender, EventArgs e)
        {
            Utilities utility = new Utilities();
            var cfg = utility.GetSysCfg();
            string msg = "产品名称：" + Application.ProductName + "\r\n";
            msg += "产品版本：" + Application.ProductVersion + "\r\n";
            msg += "版权所有：" + Application.CompanyName + "\r\n";
            msg += "更新地址：" + cfg.AutoUpdateURL + "\r\n";            
            msg += "本地计算机名：" + Environment.MachineName + "\r\n";
            msg += "系统类型：" + (Environment.Is64BitOperatingSystem?"64":"32") + "位操作系统\r\n";
            msg += "系统版本：" + Environment.OSVersion + "\r\n";
            msg += "处理器个数：" + Environment.ProcessorCount + "\r\n";
            msg += "启动时间：" + Environment.TickCount + "\r\n";
            msg += "网络域名：" + Environment.UserDomainName + "\r\n";
            msg += "系统用户：" + Environment.UserName + "\r\n";
            msg += "内部版本号：" + Environment.Version + "\r\n";
            msg += "物理内存量：" + Environment.WorkingSet + "M \r\n";
            textBoxAbout.Text = msg;
        }
    }
}
